<!DOCTYPE HTML>
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script type="text/javascript" src="angular.min.js"></script>
<style>
.red{ background:red;}
.yellow{ background:yellow;}
</style>
<script src="angular.min.js"></script>
<script>

var m1 = angular.module('myApp',[]);
m1.controller('Aaa',['$scope',function($scope){
	//$scope.text = 'hello';
	$scope.arr = [['a','b'],['c','d']];
}]);



</script>
</head>

<body>
<!--<div ng-controller="Aaa" ng-init="text='hello'">
	{{ text }}
</div>-->
<div ng-controller="Aaa">
	<div ng-repeat="arrOuter in arr" ng-init="outerIndex = $index">
    	<div ng-repeat="arrInner in arrOuter" ng-init="innerIndex = $index">
        	<p>{{arrInner}}:{{outerIndex}}{{innerIndex}}</p>
        </div>
    </div>
</div>


</body>
</html>
